/* $Id: SchoolOlympUserDetailsEntry.java 134 2011-08-27 16:48:38Z altdotua@gmail.com $ */

package alt.djudge.frontend.server.datatypes.custom;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import alt.djudge.frontend.server.datatypes.AbstractEntry;


@PersistenceCapable(detachable="true")
public class SchoolOlympUserDetailsEntry extends AbstractEntry
{	
	private static final long serialVersionUID = 1L;

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	protected Long id;
	
	@Override
	public Long getId()
	{
		return id;
	}
	
	@Override
	public void setId(Long id)
	{
		this.id = id;
	}
	
	@Persistent
	private Long userId;
	
	@Persistent
	private String regionName;
	
	@Persistent
	private String schoolName;
	
	@Persistent
	private Integer formNumber;
	
	@Persistent
	private String firstName;
	
	@Persistent
	private String middleName;
	
	@Persistent
	private String lastName;
	
	@Persistent
	private String prevPlace;
	
	@Persistent
	private String teacherName;
	
	public SchoolOlympUserDetailsEntry()
	{
		// TODO Auto-generated constructor stub
	}

	public void setUserId(Long userId)
	{
		this.userId = userId;
	}

	public Long getUserId()
	{
		return userId;
	}

	public void setSchoolName(String schoolName)
	{
		this.schoolName = schoolName;
	}

	public String getSchoolName()
	{
		return schoolName;
	}

	public void setRegionName(String regionName)
	{
		this.regionName = regionName;
	}

	public String getRegionName()
	{
		return regionName;
	}

	public void setFormNumber(Integer formNumber)
	{
		this.formNumber = formNumber;
	}

	public Integer getFormNumber()
	{
		return formNumber;
	}

	public void setLastName(String lastName)
	{
		this.lastName = lastName;
	}

	public String getLastName()
	{
		return lastName;
	}

	public void setMiddleName(String middleName)
	{
		this.middleName = middleName;
	}

	public String getMiddleName()
	{
		return middleName;
	}

	public void setFirstName(String firstName)
	{
		this.firstName = firstName;
	}

	public String getFirstName()
	{
		return firstName;
	}

	public void setTeacherName(String teacherName)
	{
		this.teacherName = teacherName;
	}

	public String getTeacherName()
	{
		return teacherName;
	}

	public void setPrevPlace(String prevPlace)
	{
		this.prevPlace = prevPlace;
	}

	public String getPrevPlace()
	{
		return prevPlace;
	}
	
	public String getFullName()
	{
		String res = getLastName() + " " + getFirstName() + " " + getMiddleName();
		return res;
	}
}
